import 'package:oramemo/generated/json/base/json_field.dart';
import 'package:oramemo/generated/json/voice_record_transliterate_entity.g.dart';
import 'dart:convert';
export 'package:oramemo/generated/json/voice_record_transliterate_entity.g.dart';

@JsonSerializable()
class VoiceRecordTransliterateEntity {
	String? text;
	List<VoiceRecordTransliterateSegments>? segments;
	String? language;
	int? code;

	VoiceRecordTransliterateEntity();

	factory VoiceRecordTransliterateEntity.fromJson(Map<String, dynamic> json) => $VoiceRecordTransliterateEntityFromJson(json);

	Map<String, dynamic> toJson() => $VoiceRecordTransliterateEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class VoiceRecordTransliterateSegments {
	int? id;
	int? seek;
	String? start;
	String? end;
	String? text;

	VoiceRecordTransliterateSegments();

	factory VoiceRecordTransliterateSegments.fromJson(Map<String, dynamic> json) => $VoiceRecordTransliterateSegmentsFromJson(json);

	Map<String, dynamic> toJson() => $VoiceRecordTransliterateSegmentsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}